<%@ page language="java" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib uri="/WEB-TAG/platForm.tld" prefix="PF"%>
<!--文件-->
<form id="dom_var_entity">
	<div class="TableTitle">
		<c:if test="${pageset.pageType==1}">新增${JSP_Messager_Title}记录</c:if>
		<c:if test="${pageset.pageType==2}">修改${JSP_Messager_Title}记录</c:if>
		<c:if test="${pageset.pageType==0}">浏览${JSP_Messager_Title}记录</c:if>
		<input type="hidden" name="entity.id" value="${entity.id}">
	</div>
	<table class="editTable">
				<tr>
					<td class="title">
						目录:
					</td>
					<td colspan="3">
							<textarea rows="3" cols="32" class="easyui-validatebox" data-options="required:true,validType:',maxLength[128]'"
							id="entity_dir" name="entity.dir">${entity.dir}</textarea>
					</td>
				</tr>
				<tr>
					<td class="title">
						类型:
					</td>
					<td colspan="3">
							<select name="entity.type" id="entity_type"  val="${entity.type}"><option value="0">NONE</option></select>
					</td>
				</tr>
				<tr>
					<td class="title">
						显示名称:
					</td>
					<td colspan="3">
							<input type="text" class="easyui-validatebox" data-options="required:true,validType:',maxLength[32]'"
							id="entity_name" name="entity.name" value="${entity.name}">
							
					</td>
				</tr>
				<tr>
					<td class="title">
						文件名:
					</td>
					<td colspan="3">
							<input type="text" class="easyui-validatebox" data-options="required:true,validType:',maxLength[32]'"
							id="entity_filename" name="entity.filename" value="${entity.filename}">
							
					</td>
				</tr>
				<tr>
					<td class="title">
						状态:
					</td>
					<td colspan="3">
							<select name="entity.pstate" id="entity_pstate"  val="${entity.pstate}"><option value="0">NONE</option></select>
					</td>
				</tr>
				<tr>
					<td class="title">
						备注:
					</td>
					<td colspan="3">
							<textarea rows="3" cols="32" class="easyui-validatebox" data-options="required:false,validType:',maxLength[64]'"
							id="entity_pcontent" name="entity.pcontent">${entity.pcontent}</textarea>
					</td>
				</tr>
		<c:if test="${pageset.pageType==1}"><!--新增-->
		</c:if>
		<c:if test="${pageset.pageType==2}"><!--修改-->
		</c:if>
		<c:if test="${pageset.pageType==0}"><!--浏览-->
		</c:if>
		<tr>
			<th colspan="4">
				<div class="div_button">
					<c:if test="${pageset.pageType==1}">
						<a id="dom_var_add_entity" href="javascript:void(0)" class="easyui-linkbutton">增加</a>
					</c:if>
					<c:if test="${pageset.pageType==2}">
						<a id="dom_var_edit_entity" href="javascript:void(0)" class="easyui-linkbutton">修改</a>
					</c:if>
					<a id="dom_var_cancle_form" href="javascript:void(0)" class="easyui-linkbutton" style="color: #000000;">取消</a>
				</div>
			</th>
		</tr>
	</table>
</form>
<script type="text/javascript">
	var submitAddAction = 'admin/FarmDocfileaddCommit.do';
	var submitEditAction = 'admin/FarmDocfileeditCommit.do';
	var currentPageType = '${pageset.pageType}';
	var DOM_DATAFORM_FORM = '#dom_var_entity';
	var LINK_FORM_ADD = '#dom_var_add_entity';
	var LINK_FORM_EDIT = '#dom_var_edit_entity';
	var LINK_FORM_CANCEL = '#dom_var_cancle_form';
	$(function() {
		initEntity();
	});
	//-->
</script>